package com.source.baseData.entity;

import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.metadata.BaseRowModel;
import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Joey
 * @since 2021-02-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SlaughterHouse对象", description="")
@ExcelTarget("slaughterHouse")
@ContentRowHeight(15)
@HeadRowHeight(25)
@ColumnWidth(25)
public class SlaughterHouse {

    @ApiModelProperty(value = "屠宰场编号")
    @TableId(value = "slaughterHouseId", type = IdType.ASSIGN_UUID)
    @ExcelProperty(value = "屠宰场编号")
    private String slaughterHouseId;

    @ApiModelProperty(value = "屠宰场名称")
    @TableField("slaughterHouseName")
    @ExcelProperty(value = "屠宰场名称")
    private String slaughterHouseName;

    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    private String latitude;

    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    private String longitude;

    @ApiModelProperty(value = "详细地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "省")
    @TableField("province")
    private String province;

    @ApiModelProperty(value = "市")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "用户id")
    @TableField("userId")
    private String userId;

    @ApiModelProperty(value = "联系人id")
    @TableField("contacts")
    private String contacts;

    @ApiModelProperty(value = "区")
    @TableField("district")
    private String district;

    @ApiModelProperty(value = "成立日期")
    @TableField("establishDate")
    private Date establishDate;

    @ApiModelProperty(value = "市场介绍")
    @TableField("marketIntroduction")
    private String marketIntroduction;

    @ApiModelProperty(value = "市场照片")
    @TableField("marketPictures")
    private String marketPictures;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createDate", fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "状态（0已删1正常2发布待审核3删除待审核）")
    @TableField("status")
    private Integer status;


    @ApiModelProperty(value = "逻辑删除")
    @TableField("isDelete")
    @TableLogic
    private Boolean isDelete;

    @ApiModelProperty(value = "屠宰场二维码")
    @TableField("slaughterHouseCode")
    private String slaughterHouseCode;


}
